package com.hhkj.admin.student.service.extend.impl;

import com.hhkj.admin.student.domain.StudentCourse;
import com.hhkj.admin.student.model.dopo.StudentCourseDo;
import com.hhkj.admin.student.model.dopo.StudentCoursePo;
import com.hhkj.admin.student.service.base.StudentCourseService;
import com.hhkj.admin.student.service.extend.StudentCourseExtendService;
import com.ruoyi.common.base.biz.service.extend.BaseExtendServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 学员科目ServiceExtend接口
 *
 * @author ruoyi
 * @since 2023-06-08
 */
@Service
public class StudentCourseExtendServiceImpl
        extends BaseExtendServiceImpl<StudentCourse, StudentCourseDo, StudentCoursePo, StudentCourseService>
        implements StudentCourseExtendService {


    @Override
    public List<StudentCoursePo> listPoByStudentIdListAll(List<Long> studentIdList) {
        StudentCourseDo conditionDo = new StudentCourseDo();
        conditionDo.setStudentIdList(studentIdList);
        conditionDo.setDelFlag("-1");
        return this.getService().listPoByDo(conditionDo);
    }

    @Override
    public StudentCoursePo getPo(String idCard, Long courseId, String status) {
        StudentCourseDo conditionDo = new StudentCourseDo();
        conditionDo.setIdCard(idCard);
        conditionDo.setCourseId(courseId);
        conditionDo.setStatus(status);
        return this.getService().getPoByDo(conditionDo);
    }

}
